<html>
<body>
<script>
var foo = "wackyvariablename";
window[foo] = 123;
alert(wackyvariablename);
</script>

test test test
</body>
</html>

